/**
 * @name Find Function Implementation
 * @kind problem
 * @problem.severity info
 * @id cpp/find-function-implementation
 * @description 查找函数的完整实现代码
 */

import cpp

from Function f
where f.getName().matches("%${functionName}%")
select 
    f.getName() as name,
    f.getQualifiedName() as qualifiedName,
    f.getType() as returnType,
    f.getParameters() as parameters,
    f.getFile().getRelativePath() as filePath,
    f.getLocation().getStartLine() as startLine,
    f.getLocation().getEndLine() as endLine,
    f.getLocation().getStartColumn() as startColumn,
    f.getLocation().getEndColumn() as endColumn,
    f.getEnclosingClass() as enclosingClass,
    f.getEnclosingNamespace() as enclosingNamespace

